﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using TraCuuDiemNhom3;
using System.Data;

namespace TraCuuDiemNhom3
{
    public partial class demo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TienIchSQL.LayChuoiKetNoi();
           // int[] mangso = new int [] {1,2,3,4,5,6};
           // DropDownList1.DataSource = mangso;

           // ListBox1.DataSource = mangso;

           // //DropDownList1.DataBind();
           //mangso[0]=50;
           // //ListBox1.DataBind();
           // this.DataBind();
            
            // Lay du lieu: Datatable
            DataTable tblNguoiDung = TienIchSQL.ChayLenhSelectDuLieu("select * from NguoiDung");
            //DropDownList1.DataSource = tblNguoiDung;
            //DropDownList1.DataTextField = "HoTen";
            //ListBox1.DataValueField = "HoTen";


            GridView1.DataSource = tblNguoiDung;

           this.DataBind();
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}